package com.principle.strategy.improve;

import com.principle.strategy.improve.Duck;
import com.principle.strategy.improve.PekingDuck;
import com.principle.strategy.improve.ToyDuck;
import com.principle.strategy.improve.WildDuck;

public class Client {
    public static void main(String[] args) {
        Duck pekingDuck=new PekingDuck();
        Duck toyDuck=new ToyDuck();
        Duck wildDuck=new WildDuck();
        pekingDuck.display();
        pekingDuck.quack();
        pekingDuck.swim();
        pekingDuck.fly();

        toyDuck.display();
        toyDuck.quack();
        toyDuck.swim();
        toyDuck.fly();

        wildDuck.display();
        wildDuck.quack();
        wildDuck.swim();
        wildDuck.fly();
    }
}
